-- card: 48490 from stack: in.0 -- bmap block id: 0 -- flags: 0000 -- background id: 47554 -- name: DISPLAYING COLOR PICTURES ----- HyperTalk script ----- on closecard hideOtherFields end closecard on hideOtherFields repeat with n = 2 to the number of cd flds hide cd fld n end repeat end hideOtherFields -- part 10 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=47 top=246 right=264 bottom=426 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 14 -- part name: ----- HyperTalk script ----- on mouseUp hideOtherFields --in cd script lock screen set the lockText of the target to false click at the clickLoc click at the clickLoc put the selection into whatField set the lockText of the target to true unlock screen show cd fld whatField end mouseUp -- part 3 (field) -- low flags: 81 -- high flags: 2004 -- rect: left=41 top=141 right=244 bottom=286 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 174 -- text size: 14 -- style flags: 0 -- line height: 15 -- part name: sourceName ----- HyperTalk script ----- on mouseUp hide me end mouseUp -- part 4 (field) -- low flags: 81 -- high flags: 2004 -- rect: left=94 top=169 right=244 bottom=277 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 174 -- text size: 14 -- style flags: 0 -- line height: 15 -- part name: sourceType ----- HyperTalk script ----- on mouseUp hide me end mouseUp -- part 5 (field) -- low flags: 81 -- high flags: 2004 -- rect: left=122 top=138 right=244 bottom=365 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 174 -- text size: 14 -- style flags: 0 -- line height: 15 -- part name: windowStyle ----- HyperTalk script ----- on mouseUp hide me end mouseUp -- part 6 (field) -- low flags: 81 -- high flags: 2004 -- rect: left=187 top=157 right=244 bottom=369 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 174 -- text size: 14 -- style flags: 0 -- line height: 15 -- part name: windowPos ----- HyperTalk script ----- on mouseUp hide me end mouseUp -- part 7 (field) -- low flags: 81 -- high flags: 2004 -- rect: left=233 top=144 right=247 bottom=434 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 174 -- text size: 14 -- style flags: 0 -- line height: 15 -- part name: origin ----- HyperTalk script ----- on mouseUp hide me end mouseUp -- part 8 (field) -- low flags: 81 -- high flags: 2004 -- rect: left=264 top=142 right=244 bottom=434 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 174 -- text size: 14 -- style flags: 0 -- line height: 15 -- part name: dithering ----- HyperTalk script ----- on mouseUp hide me end mouseUp -- part 9 (field) -- low flags: 81 -- high flags: 2004 -- rect: left=43 top=200 right=245 bottom=183 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 174 -- text size: 14 -- style flags: 0 -- line height: 15 -- part name: Picture ----- HyperTalk script ----- on mouseUp hide me end mouseUp -- part contents for background part 1 ----- text ----- HyperCard 2.0 contains an XCMD for displaying color or grayscale pictures. The XCMD works best under a memory partition of two or more megabytes, and fully supports 32-Bit QuickDraw. You can send messages to the picture window to close it, zoom the picture or the window in or out, change the window size, and scroll the picture. The format for using the XCMD to display pictures is: Click on the parts of the command above for more information. -- part contents for background part 2 ----- text ----- DISPLAYING COLOR PICTURES -- part contents for card part 3 ----- text ----- SourceName is the name of the file or resource containing the picture to be displayed. If no name is given, the standard File diaolg box will be displayed, from which the user can select a PICT or PNTG file. -- part contents for card part 4 ----- text ----- SourceType is “resource” or “file” or “clipboard”. If no option is specified, the default is “file”. -- part contents for card part 5 ----- text ----- WindowStyle specifies the type of window in which the picture is to be displayed. The window type can be “plain”, “rect”, “zoom”, “roundRect”, “dialog”, “shadow”, or “windoid”. The default is “zoom”. -- part contents for card part 6 ----- text ----- WindowPos specifies the rectangle, in global coordinates, that will be the bounding rectangle for the picture. -- part contents for card part 7 ----- text ----- Origin specifies the point of the picture, in the picture’s coordinate system, that is to be displayed in the top left corner of the window. The default is 0,0. -- part contents for card part 8 ----- text ----- Dithering is either “true” or “false”. Unless you have 32-bit QuickDraw installed , this parameter is ignored. The default is “false”. -- part contents for card part 9 ----- text ----- Picture is the name of the XCMD. -- part contents for card part 10 ----- text ----- Picture sourceName,sourceType,windowStyle,windowPos,origin,dithering